cmake_minimum_required(VERSION 3.22)
set(project_name ctpnet)
project(${project_name})

set(CMAKE_CXX_STANDARD 23)


if(UNIX) #linux
	add_subdirectory(linux/md)
	add_subdirectory(linux/td)
else() #windows
	set(CMAKE_C_FLAGS /utf-8)
	set(CMAKE_CXX_FLAGS /utf-8) #指定代码文件用utf-8，避免windows项目组织工具不认识，这里windows的项目组织工具是vs2022的MSBuild，后端编译器是vs2022自带的clang
	add_subdirectory(windows/md)
	add_subdirectory(windows/td)

endif()
